package com.apes.enquiry.brand.model;

import com.apes.framework.jpa.ApesBean;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * 类描述：品质细分
 *
 * @ClassName SubdivideQuality
 * @Description 描述
 * @Author wushilong
 * @Date 2022/11/3 14:36
 * @Version 1.0
 */
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = SubdivideQuality.CONST_TABLE_NAME)
public class SubdivideQuality implements ApesBean {
    public static final String CONST_TABLE_NAME = "mas_xfpz";

    @Id
    @Column(name = "PZID", length = 8)
    @Comment("品质编码")
    private String id;

    @Column(name = "PZMC")
    @Comment("品质名称")
    private String name;

    @Column(name = "XFPZID", length = 8)
    @Comment("细分品质编码")
    private String XFid;

    @Column(name = "XFPZMC")
    @Comment("细分品质名称")
    private String XFname;

    @Column(name = "XFPZJC")
    @Comment("细分品质简称")
    private String abbreviation;

    @Column(name = "XFPZDY", length = 2000)
    @Comment("描述")
    private String description;
}
